//
//  RFTest.m
//  OpenCVDemo
//
//  Created by zrf on 2021/7/14.
//

#import "RFTest.h"

@interface RFTest()
{
    int _i11;
    NSString *_str11;
    RFTest1 *_test1;
    NSTimer *_timer;
}
@property(nonatomic, copy)NSString *str22;
@property(nonatomic, assign)NSInteger i22;
@property(class, nonatomic, copy)NSString *str33;
@end

static NSString *str44 = @"44";

@implementation RFTest
- (void)func1{
    if (_test1 == nil) {
        _test1 = RFTest1.new;
        if (_timer == nil) {
            _timer = [NSTimer scheduledTimerWithTimeInterval:1 target:_test1 selector:@selector(timerCall) userInfo:nil repeats:YES];
        }
//        [_test1 performSelector:@selector(func1)];
    }
    
}
+ (void)func2 {
    
}
+ (NSString *)str33{
    return @"123";
}
+ (void)setStr33:(NSString *)str33{
     
}

-(void)dealloc{
    [_timer invalidate];
    _timer = nil;
}
@end

@implementation RFTest1
{
    NSTimer *_timer;
}

- (void)func1{
    if (_timer == nil) {
        _timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerCall) userInfo:nil repeats:YES];
    }
    
}
- (void)timerCall{
    NSLog(@"timer");
}
-(void)dealloc{
    
}

@end
